/*
 * TitleSprite is a Sprite subclass.
 */

TitleSprite.prototype = new Sprite();

function TitleSprite(text, context, x, y, width, clickCallback, hoverCallback) {
		
	this.text = text;		
	
	Sprite.call(this, context,
					x, y,
	 				width,
	 				0.23 * width,
	 				clickCallback, hoverCallback);
	
	this.imageContext.fillStyle = "#8A8A8A";
	this.imageContext.strokeStyle = "#554466";
	this.imageContext.font = "bold 80px Helvetica";
	this.imageContext.lineWidth = 7;
	
	this.imageContext.fillText(this.text,							
										0, 0.9 * this.height,
										this.width);
	
	this.imageContext.strokeText(this.text,
											0, 0.9 * this.height,
											this.width);
			
	this.imageContext.fillStyle = "#000000";			
}